﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace NCS.DeviceManager.Models.Entities
{
    [Table("tbl_userinfo")]
    public class UserInfoEntity : BaseEntity
    {
        /// <summary>
        /// 登录账号
        /// </summary>
        [MaxLength(255), Required]
        public string Account { get; set; }
        /// <summary>
        /// 登录密码
        /// </summary>
        [MaxLength(512), Required]
        public string Password { get; set; }
        /// <summary>
        /// 显示名称
        /// </summary>
        [MaxLength(255), Required]
        public string UserName { get; set; }
        /// <summary>
        /// 邮箱地址
        /// </summary>
        [MaxLength(255)]
        public string Email { get; set; }
        /// <summary>
        /// 电话号码
        /// </summary>
        [MaxLength(255)]
        public string Mobile { get; set; }
        /// <summary>
        /// 随机生成码
        /// </summary>
        [MaxLength(8)]
        public string MobileRandomCode { get; set; }
        /// <summary>
        /// 生成时间
        /// </summary>
        public DateTime MobileRandomDate { get; set; }
        /// <summary>
        /// 头像编号
        /// </summary>
        public int AvatarId { get; set; }
        /// <summary>
        /// 微信号码
        /// </summary>
        [MaxLength(255)]
        public string WechatCode { get; set; }
        /// <summary>
        /// 错误次数
        /// </summary>
        public int ErrorCount { get; set; }
        /// <summary>
        /// 禁用时间
        /// </summary>
        public DateTime DisabledDate { get; set; }
    }
}
